<?php

namespace app\api\controller;

use app\api\model\Address;
use app\common\controller\Api;
use app\common\model\Type;
use think\addons\Controller;

/**
 * 首页接口.
 */
class Test extends Controller
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * test
     */
    public function index()
    {
//	    $params = [
//			'token' => '255d6b42-a9aa-4416-9306-1ea4e8319167',
//            'type' => '1',
//            'id' => '35',
//            'car_id' => '1',
//            'merchant_car_name' => '大众途观2020款',
//            'banner' => '/uploads/20231013/edf06b826f88fb00982010b482cd2edf.jpg,/uploads/20231013/54b791336e6e3470d3f32a6c8a1e9c06.jpeg',
//            'car_price' => '102',
//            'car_note' => '车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述车辆描述',
//            'car_number' => '豫APL369',
//            'registration_time' => '2020-10-15',
//            'driving_license' => '/uploads/20231023/b1494f7a72f8cf9984465e661a26eab4.jpg',
//            'check_image' => '/uploads/20231023/ac6b1571b944df5fcf40c6223448502a.png,/uploads/20231023/ac6b1571b944df5fcf40c6223448502a.png',
//            'car_label' => '2,3,4',
//            'handle_fee' => '30',
//            'night_pick_fee' => '30',
//            'night_return_fee' => '30',
//            'car_insurance' => [
//                [
//                    "insure_id" => 1,
//                    "insure_name" => "基础保障",
//                    "price" => "100.00",
//                ],
//              [
//                    "insure_id" => 2,
//                    "insure_name" => "优选保障",
//                    "price" => "200.00",
//              ],
//              [
//                    "insure_id" => 3,
//                    "insure_name" => "全面保障",
//                    "price" => "500.00",
//              ]
//            ],
//            'temporary_time' => [
//                [
//                    "id" => 2,
//                    "start_time" => '2023-12-05 08:00',
//                    "end_time" => "2023-12-06 08:00",
//                ],
//                [
//                    "id" => '',
//                    "start_time" => '2023-12-12 08:00',
//                    "end_time" => "2023-12-14 08:00",
//                ],
//            ],
//            'far_price' => [
//                [
//                    "id" => 2,
//                    "start_time" => '2023-12-05',
//                    "end_time" => "2023-12-08",
//                    "days" => "2",
//                    "price" => "100.00",
//                ],
//                [
//                    "id" => '',
//                    "start_time" => '2023-12-05',
//                    "end_time" => "2023-12-08",
//                    "days" => "2",
//                    "price" => "100.00",
//                ],
//            ],
//	    ];

        $params = [
//            'token' => '4d0daa1e-5122-4caa-86e4-4c8e7e6daedc',
            'token' => '091e3c42-9bd6-4a60-ba63-bf6dd2e7a721',
            'edit' => 2,
        ];
	    $newData = base64_encode(json_encode($params));
		echo $newData;
	}

}
